import service  from "./Service"
export const http={
    get : async (data)=>{
        const ret = await service({
                        url:data.url,
                        method: data.method,
                    })
        console.log(ret)
        return ret;
    },
    post : async (data,parmas)=>{
        const ret = await service({
                        url:data.url,
                        method: data.method,
                        data:parmas
                    })
        return ret;
    }
}
export default http